<include file="../header" />
<body class="J_scroll_fixed">

	<div class="wrap jj">
		<div class="common-form">
			<form method="post" class="form-horizontal J_ajaxForm" action="{:U('promotion/edit_post')}">
                            <input type='hidden' name='id' value='{$promotion.promotion_id}' />
				<fieldset>
					<div class="control-group">
						<label class="control-label">店铺：</label>
						<div class="controls">
							{:getShopSelectHtml($promotion['shop_id'])}
						</div>
					</div>
                                        <div class="control-group">
						<label class="control-label">活动名称：</label>
						<div class="controls">
							<input type="text" class="input" name="promotionName" value="{$promotion.promotion_name}">
						</div>
					</div>
                                        <div class="control-group">
						<label class="control-label">折扣：</label>
						<div class="controls">
							<input type="text" class="input" name="discount" value="{$promotion.discount}">
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">开始时间：</label>
						<div class="controls">
                                                        <input type="text" name="beginTime" class="input length_2 J_date" value="{:formatDateString($promotion['begin_time'])}" autocomplete="off" readonly> 
						</div>
					</div>
					<div class="control-group">
						<label class="control-label">截止时间：</label>
						<div class="controls">
							<input type="text" name="endTime" class="input length_2 J_date" value="{:formatDateString($promotion['end_time'])}" autocomplete="off">
						</div>
					</div>
				</fieldset>
				<div class="form-actions">
					<button type="submit" class="btn btn-primary">更新</button>
					<a class="btn" href="__URL__">返回</a>
				</div>
			</form>
		</div>
	</div>
	<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>